<template>
  <section id="about" class="about">
    <div class="container">
      <div class="section-header">
        <h2 class="section-title">关于智索真源</h2>
        <p class="section-subtitle">一家专注于智能化企业服务创新的科技公司，已在芜湖市政府支持下在"神山智谷"完成落地</p>
      </div>
      <div class="about-content">
        <div class="about-text">
          <h3>我们的使命</h3>
          <p>将人工智能作为核心驱动力，制定清晰的阶段性演进路径，赋能千行百业实现数字化转型。这不仅是流程的优化，更是对传统工作流的重构，旨在从根本上突破生产力瓶颈，释放增长新动能。</p>
          
          <h3>阶段性目标</h3>
          <div class="advantages">
            <div class="advantage-item" 
                 v-for="(phase, index) in phases" 
                 :key="index"
                 @mouseenter="setActivePhase(index)"
                 @click="setActivePhase(index)"
                 :class="{ active: activePhase === index }">
              <i :class="phase.icon"></i>
              <div>
                <h4>{{ phase.title }}</h4>
                <p v-html="phase.description"></p>
              </div>
            </div>
          </div>
        </div>
      
        
        <!-- 数据可视化 -->
        <div class="data-section">
          <h3 class="data-title">预计目标</h3>
          <DataVisualization :phaseData="currentPhaseData" />
        </div>
      </div>
    </div>
  </section>
</template>

<script>
import DataVisualization from './DataVisualization.vue'

export default {
  name: 'AboutSection',
  components: {
    DataVisualization
  },
  data() {
    return {
      activePhase: 0, // 默认显示第一阶段
      phases: [
        {
          title: '第一阶段：起航',
          description: '以计算机行业为起点，解决<a href="http://views.ce.cn/view/ent/202504/t20250411_1977263.shtml" target="_blank" class="highlight-link">大学生教育与职场脱轨</a>的问题，所学即所用，积累实战经验，提升大学生就业竞争力，先在芜湖试点',
          icon: 'fas fa-chart-line',
          data: {
            enterpriseCustomers: 200,
            taskMatches: 8000,
            systemStability: 95,
            efficiencyImprovement: 30
          }
        },
        {
          title: '第二阶段：夯实',
          description: '拓宽行业范围，新增区块链存证，三维信用模型验证人才能力，AI根据任务需求自动匹配带"行业认证徽章"人才，减少筛选时间确保项目安全，在安徽省内持续运营',
          icon: 'fas fa-shield-alt',
          data: {
            enterpriseCustomers: 800,
            taskMatches: 40000,
            systemStability: 97,
            efficiencyImprovement: 50
          }
        },
        {
          title: '第三阶段：拓展',
          description: '技术领域全覆盖，在安徽省内持续运营，完善能力认证体系，积累经验，为全国化运营打下基础',
          icon: 'fas fa-search',
          data: {
            enterpriseCustomers: 2500,
            taskMatches: 100000,
            systemStability: 98,
            efficiencyImprovement: 70
          }
        },
        {
          title: '第四阶段：引领',
           description: '能力认证体系相当完善，在全国各地建立<a href="/zhisuo-station" target="_blank" class="highlight-link">"智索驿站"</a>，实现全国化运营',
          icon: 'fas fa-coins',
          data: {
            enterpriseCustomers: 8000,
            taskMatches: 300000,
            systemStability: 99,
            efficiencyImprovement: 85
          }
        }
      ]
    }
  },
  computed: {
    currentPhaseData() {
      return this.phases[this.activePhase].data
    }
  },
  methods: {
    setActivePhase(index) {
      this.activePhase = index
    }
  }
}
</script>

<style scoped>
.about {
  background: rgba(255, 255, 255, 0.02);
  padding: 120px 0;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 40px 20px;
  border-radius: 24px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.2rem;
  color: white;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 600;
}

.about-text p {
  margin-bottom: 2rem;
  color: white;
  line-height: 1.8;
}

.advantages {
  display: grid;
  gap: 1.5rem;
}

.advantage-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.advantage-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

.advantage-item.active {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.1);
}

.advantage-item.active::after {
  content: '✓';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  animation: checkmarkAppear 0.3s ease-out;
}

@keyframes checkmarkAppear {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.advantage-item i {
  font-size: 2rem;
  color: #3b82f6;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.advantage-item h4 {
  margin-bottom: 0.5rem;
  color: white;
  font-weight: 600;
}

.advantage-item p {
  color: white;
  margin: 0;
}

.data-section {
  display: grid;
  gap: 2rem;
}

.data-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 600;
  text-align: center;
}

.about-stats {
  display: grid;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.stat-label {
  color: white;
  font-weight: 500;
}

/* 高亮链接样式 - 优化后的柔和设计 */
.advantage-item p .highlight-link,
.about-text p .highlight-link,
.highlight-link {
  color: #0ea5e9 !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(14, 165, 233, 0.15) 100%) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 1.05em !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  display: inline-block !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  backdrop-filter: blur(10px) !important;
}

.advantage-item p .highlight-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(14, 165, 233, 0.3) 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
  z-index: -1;
}

.advantage-item p .highlight-link:hover::before,
.about-text p .highlight-link:hover::before,
.highlight-link:hover::before {
  width: 100%;
}

.advantage-item p .highlight-link:hover,
.about-text p .highlight-link:hover,
.highlight-link:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(14, 165, 233, 0.35) 100%) !important;
  border-color: rgba(59, 130, 246, 0.6) !important;
  transform: translateY(-1px) !important;
}

/* 全局样式 */
:global(.highlight-link) {
  color: #0ea5e9 !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(14, 165, 233, 0.15) 100%) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 1.05em !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  display: inline-block !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  backdrop-filter: blur(10px) !important;
}

:global(.highlight-link::before) {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(14, 165, 233, 0.3) 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
  z-index: -1;
}

:global(.highlight-link:hover::before) {
  width: 100%;
}

:global(.highlight-link:hover) {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(14, 165, 233, 0.35) 100%) !important;
  border-color: rgba(59, 130, 246, 0.6) !important;
  transform: translateY(-1px) !important;
}
</style>
